package giab.weixin.web.httpimpl;

import java.util.ArrayList;

import giab.weixin.web.httpservice.HttpBaseService;

import org.apache.http.NameValuePair;
import org.apache.http.message.BasicNameValuePair;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class EvaluationHttpImpl {
	@Autowired
	private HttpBaseService hbs;
	
	/**
	* @author 张怡菲
	* @createTime 	2013-5-7 下午4:15:30
	* @Title: evaluationSave
	* @Description: 评论服务信息
	* @param weixinId
	* @param orderSubId
	* @param Content
	* @return    String
	* @modifyTime	2013-5-7 下午4:15:30
	* @modifyNote (在这里说明修改了什么)
	* 
	*/
	
	public String evaluationSave(String weixinId,String orderSubId,String Content){
		ArrayList<NameValuePair> param = new ArrayList<NameValuePair>();
		param.add(new BasicNameValuePair("weixinId", weixinId));
		param.add(new BasicNameValuePair("orderSubId", orderSubId));
		param.add(new BasicNameValuePair("Content", Content));
		String ru = hbs.postUrlResult("evaluation!save.action", param);	
		return ru;
		
	}
	
	/**
	* @author 张怡菲
	* @createTime 	2013-5-7 下午4:16:36
	* @Title: evaluationList
	* @Description: 显示评论记录
	* @param weixinId
	* @param orderSubId
	* @param pageNumber
	* @return    String
	* @modifyTime	2013-5-7 下午4:16:36
	* 
	*/
	
	public String evaluationList(String weixinId,String orderSubId,String pageNumber){
		ArrayList<NameValuePair> param = new ArrayList<NameValuePair>();
		param.add(new BasicNameValuePair("weixinId", weixinId));
		param.add(new BasicNameValuePair("orderSubId", orderSubId));
		param.add(new BasicNameValuePair("pageNumber", pageNumber));
		String ru = hbs.postUrlResult("evaluation!list.action", param);	
		return ru;
		
	}
	
}
